package com.example.administrator.ygddriver.set.safety;

import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;

import com.example.administrator.ygddriver.R;
import com.example.administrator.ygddriver.base.BaseActivity;
import com.example.administrator.ygddriver.tool.SimpleToolbar;

public class SafetyActivity extends BaseActivity implements View.OnClickListener {
    private SimpleToolbar simpleToolbar;
    private LinearLayout mPasswordLl;

    @Override
    public int initLayout() {
        return R.layout.activity_safety;
    }

    @Override
    public void initView() {
        simpleToolbar = findViewById(R.id.activity_safety_stb);
        mPasswordLl = findViewById(R.id.activity_safety_password_ll);
        mPasswordLl.setOnClickListener(this);
    }

    @Override
    public void initDate() {
        setSimpleToolbar();
    }

    private void setSimpleToolbar() {
        simpleToolbar.setMainTitle("账户安全");
        simpleToolbar.setMainTitleColor("#000000");
        simpleToolbar.setBackIv(R.mipmap.u24);
        simpleToolbar.setToolColor("#ffffff");
        simpleToolbar.setBackIvClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.activity_safety_password_ll:
                Intent intent = new Intent(this, SetValidationActivity.class);
                startActivity(intent);
                break;
        }
    }
}
